com.netflix.zuul.ZuulFilter,com.netflix.zuul.context.RequestContext,org.slf4j.Logger,org.slf4j.LoggerFactory,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse;

class PreFilter extends ZuulFilter{
	private static Logger log = LoggerFactory.getLogger(AccessFilter.class);

    @Override
    public String filterType() {
        return "pre";
    }

    @Override
    public int filterOrder() {
        return 1000;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() {
        RequestContext ctx = RequestContext.getCurrentContext();
        HttpServletRequest request = ctx.getRequest();

        log.info("send {} request to {}", request.getMethod(), request.getRequestURL().toString());
		
        return null;
    }
}